<include file="public@header" />
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('Navigation/index')}">导航栏列表</a></li>
        <li class="active"><a href="{:url('Navigation/edit')}">导航栏修改</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('Navigation/editPost')}">
        <div class="form-group">
            <label for="input-title" class="col-sm-2 control-label">导航栏名称<span class="form-required"></span></label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-title" name="name" value="{$res.name}">
            </div>
        </div>
        <div class="form-group">
            <label for="input-url" class="col-sm-2 control-label">导航栏地址<span class="form-required"></span></label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-url" name="url" value="{$res.url}">
            </div>
        </div>
        <div class="form-group">
            <label for="input-parent" class="col-sm-2 control-label">二级页面<span class="form-required"></span></label>
            <div class="col-md-6 col-sm-10">
                <select id="input-parent" value="" name="parent_id">
                    <option value="">请选择二级页面</option>
                    <foreach name="list" item="vo">
                        <option value="{$vo.id}" <if ($vo.id == $res.parent_id)>selected </if>>
                            {$vo.name}
                        </option>
                    </foreach>
                </select>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('EDIT')}</button>
                <a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
            </div>
        </div>
        <div><input type="hidden" name="id" value="{$res.id}"></div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script type="text/javascript">
    //编辑器路径定义
    var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
    var editorcontent = new baidu.editor.ui.Editor();
    editorcontent.render('content');
</script>
</body>
</html>